#!/usr/bin/env python3
"""
Python FastAPI 快速启动脚本
适用于开发环境
"""
import uvicorn
from config import settings

if __name__ == "__main__":
    print("🐍 三江译舟后端API - Python FastAPI")
    print("=" * 50)
    print(f"🌐 服务地址: http://{settings.HOST}:{settings.PORT}")
    print(f"📚 API文档: http://{settings.HOST}:{settings.PORT}{settings.DOCS_URL}")
    print(f"📖 ReDoc: http://{settings.HOST}:{settings.PORT}{settings.REDOC_URL}")
    print(f"🔧 开发模式: {'开启' if settings.DEBUG else '关闭'}")
    print("🛑 按 Ctrl+C 停止服务")
    print("=" * 50)
    
    uvicorn.run(
        "main:app",
        host=settings.HOST,
        port=settings.PORT,
        reload=settings.DEBUG,
        log_level="info" if settings.DEBUG else "warning"
    )
